using UnityEngine;

public class OnlyOne : MonoBehaviour
{
	private void Awake()
	{
		string text = base.name;
		base.name = "tmp";
		GameObject gameObject = GameObject.Find(text);
		if (gameObject != null)
		{
			Object.Destroy(base.gameObject);
		}
		else
		{
			base.name = text;
		}
	}
}
